package com.kudian.restful.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * WelInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wel_info")
public class WelInfo implements java.io.Serializable {

	// Fields

	private Integer welId;
	private String mediaId;
	private Timestamp addTime;

	// Constructors

	/** default constructor */
	public WelInfo() {
	}

	/** full constructor */
	public WelInfo(String mediaId, Timestamp addTime) {
		this.mediaId = mediaId;
		this.addTime = addTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "wel_id", unique = true, nullable = false)
	public Integer getWelId() {
		return this.welId;
	}

	public void setWelId(Integer welId) {
		this.welId = welId;
	}

	@Column(name = "media_id", nullable = false, length = 32)
	public String getMediaId() {
		return this.mediaId;
	}

	public void setMediaId(String mediaId) {
		this.mediaId = mediaId;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

}